/**
 * @file Add some useful functions for native Array class
 * 
 * @author Steve Gao<gaofu@parllay.com>
 */

/**
 * Clear the array elements
 */
Array.prototype.clear = function() {
    this.splice(0);
}

/**
 * Clone the array elements
 */
Array.prototype.clone = function() {
    return this.slice(0);
};